/*
 * CrearRubro.java
 *
 * Created on 14-oct-2008, 16:16:25
 */
 
package investigaciones_itm.Presupuestos;

import com.sun.rave.faces.data.DefaultSelectItemsArray;
import com.sun.rave.web.ui.appbase.AbstractPageBean;
import com.sun.webui.jsf.component.Body;
import com.sun.webui.jsf.component.Calendar;
import com.sun.webui.jsf.component.DropDown;
import com.sun.webui.jsf.component.Form;
import com.sun.webui.jsf.component.Head;
import com.sun.webui.jsf.component.Html;
import com.sun.webui.jsf.component.Link;
import com.sun.webui.jsf.component.Page;
import com.sun.webui.jsf.component.PanelLayout;
import com.sun.webui.jsf.component.StaticText;
import com.sun.webui.jsf.component.Tab;
import com.sun.webui.jsf.component.TabSet;
import com.sun.webui.jsf.component.Table;
import com.sun.webui.jsf.component.TableColumn;
import com.sun.webui.jsf.component.TableRowGroup;
import com.sun.webui.jsf.component.TextField;
import javax.faces.FacesException;
import investigaciones_itm.RequestBean1;
import investigaciones_itm.ApplicationBean1;
import investigaciones_itm.SessionBean1;
//import itm.bo.presupuestos.rubroBO;
import itm.vo.presupuestos.presupuestosVO;
import java.sql.Date;
import javax.faces.component.UISelectItems;
import javax.faces.component.html.HtmlCommandButton;
import javax.faces.component.html.HtmlInputText;
import javax.faces.component.html.HtmlInputTextarea;
import javax.faces.component.html.HtmlMessages;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlPanelGrid;

/**
 * <p>Page bean that corresponds to a similarly named JSP page.  This
 * class contains component definitions (and initialization code) for
 * all components that you have defined on this page, as well as
 * lifecycle methods and event handlers where you may add behavior
 * to respond to incoming events.</p>
 *
 * @author Administrador
 */
public class PresupuestoAprobado extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">

    /**
     * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
     * This method is automatically generated, so any user-specified code inserted
     * here is subject to being replaced.</p>
     */
    private void _init() throws Exception {
    }

    private Page page1 = new Page();
    
    public Page getPage1() {
        return page1;
    }
    
    public void setPage1(Page p) {
        this.page1 = p;
    }
    
    private Html html1 = new Html();
    
    public Html getHtml1() {
        return html1;
    }
    
    public void setHtml1(Html h) {
        this.html1 = h;
    }
    
    private Head head1 = new Head();
    
    public Head getHead1() {
        return head1;
    }
    
    public void setHead1(Head h) {
        this.head1 = h;
    }
    
    private Link link1 = new Link();
    
    public Link getLink1() {
        return link1;
    }
    
    public void setLink1(Link l) {
        this.link1 = l;
    }
    
    private Body body1 = new Body();
    
    public Body getBody1() {
        return body1;
    }
    
    public void setBody1(Body b) {
        this.body1 = b;
    }
    
    private Form form1 = new Form();
    
    public Form getForm1() {
        return form1;
    }
    
    public void setForm1(Form f) {
        this.form1 = f;
    }
    private HtmlPanelGrid p3 = new HtmlPanelGrid();

    public HtmlPanelGrid getP3() {
        return p3;
    }

    public void setP3(HtmlPanelGrid hpg) {
        this.p3 = hpg;
    }
    private HtmlOutputText labelMision = new HtmlOutputText();

    public HtmlOutputText getLabelMision() {
        return labelMision;
    }

    public void setLabelMision(HtmlOutputText hot) {
        this.labelMision = hot;
    }
    private HtmlPanelGrid p4 = new HtmlPanelGrid();

    public HtmlPanelGrid getP4() {
        return p4;
    }

    public void setP4(HtmlPanelGrid hpg) {
        this.p4 = hpg;
    }
    private HtmlInputTextarea areaMision = new HtmlInputTextarea();

    public HtmlInputTextarea getAreaMision() {
        return areaMision;
    }

    public void setAreaMision(HtmlInputTextarea hit) {
        this.areaMision = hit;
    }
    private HtmlPanelGrid p5 = new HtmlPanelGrid();

    public HtmlPanelGrid getP5() {
        return p5;
    }

    public void setP5(HtmlPanelGrid hpg) {
        this.p5 = hpg;
    }
    private HtmlOutputText labelVision = new HtmlOutputText();

    public HtmlOutputText getLabelVision() {
        return labelVision;
    }

    public void setLabelVision(HtmlOutputText hot) {
        this.labelVision = hot;
    }
    private HtmlPanelGrid p6 = new HtmlPanelGrid();

    public HtmlPanelGrid getP6() {
        return p6;
    }

    public void setP6(HtmlPanelGrid hpg) {
        this.p6 = hpg;
    }
    private HtmlInputTextarea areaVision = new HtmlInputTextarea();

    public HtmlInputTextarea getAreaVision() {
        return areaVision;
    }

    public void setAreaVision(HtmlInputTextarea hit) {
        this.areaVision = hit;
    }
    private HtmlPanelGrid p7 = new HtmlPanelGrid();

    public HtmlPanelGrid getP7() {
        return p7;
    }

    public void setP7(HtmlPanelGrid hpg) {
        this.p7 = hpg;
    }
    private HtmlOutputText labelPolitica = new HtmlOutputText();

    public HtmlOutputText getLabelPolitica() {
        return labelPolitica;
    }

    public void setLabelPolitica(HtmlOutputText hot) {
        this.labelPolitica = hot;
    }
    private HtmlPanelGrid p8 = new HtmlPanelGrid();

    public HtmlPanelGrid getP8() {
        return p8;
    }

    public void setP8(HtmlPanelGrid hpg) {
        this.p8 = hpg;
    }
    private HtmlInputTextarea areaPoliticas = new HtmlInputTextarea();

    public HtmlInputTextarea getAreaPoliticas() {
        return areaPoliticas;
    }

    public void setAreaPoliticas(HtmlInputTextarea hit) {
        this.areaPoliticas = hit;
    }
    private HtmlPanelGrid p9 = new HtmlPanelGrid();

    public HtmlPanelGrid getP9() {
        return p9;
    }

    public void setP9(HtmlPanelGrid hpg) {
        this.p9 = hpg;
    }
    private HtmlOutputText labelMail = new HtmlOutputText();

    public HtmlOutputText getLabelMail() {
        return labelMail;
    }

    public void setLabelMail(HtmlOutputText hot) {
        this.labelMail = hot;
    }
    private HtmlPanelGrid p10 = new HtmlPanelGrid();

    public HtmlPanelGrid getP10() {
        return p10;
    }

    public void setP10(HtmlPanelGrid hpg) {
        this.p10 = hpg;
    }
    private HtmlInputText textEmail = new HtmlInputText();

    public HtmlInputText getTextEmail() {
        return textEmail;
    }

    public void setTextEmail(HtmlInputText hit) {
        this.textEmail = hit;
    }
    private UISelectItems listbox1SelectItems = new UISelectItems();

    public UISelectItems getListbox1SelectItems() {
        return listbox1SelectItems;
    }

    public void setListbox1SelectItems(UISelectItems uisi) {
        this.listbox1SelectItems = uisi;
    }
    private UISelectItems listbox2SelectItems = new UISelectItems();

    public UISelectItems getListbox2SelectItems() {
        return listbox2SelectItems;
    }

    public void setListbox2SelectItems(UISelectItems uisi) {
        this.listbox2SelectItems = uisi;
    }
    private HtmlPanelGrid gridPanel1 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel1() {
        return gridPanel1;
    }

    public void setGridPanel1(HtmlPanelGrid hpg) {
        this.gridPanel1 = hpg;
    }
    private TabSet tabSet1 = new TabSet();

    public TabSet getTabSet1() {
        return tabSet1;
    }

    public void setTabSet1(TabSet ts) {
        this.tabSet1 = ts;
    }
    private Tab tabEstPresupuesto1 = new Tab();

    public Tab getTabEstPresupuesto1() {
        return tabEstPresupuesto1;
    }

    public void setTabEstPresupuesto1(Tab t) {
        this.tabEstPresupuesto1 = t;
    }
    private PanelLayout panelRubroXFuente1 = new PanelLayout();

    public PanelLayout getPanelRubroXFuente1() {
        return panelRubroXFuente1;
    }

    public void setPanelRubroXFuente1(PanelLayout pl) {
        this.panelRubroXFuente1 = pl;
    }
    private HtmlPanelGrid panelPrincipal1 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelPrincipal1() {
        return panelPrincipal1;
    }

    public void setPanelPrincipal1(HtmlPanelGrid hpg) {
        this.panelPrincipal1 = hpg;
    }
    private HtmlPanelGrid panelMensajes1 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelMensajes1() {
        return panelMensajes1;
    }

    public void setPanelMensajes1(HtmlPanelGrid hpg) {
        this.panelMensajes1 = hpg;
    }
    private HtmlMessages messageList1 = new HtmlMessages();

    public HtmlMessages getMessageList1() {
        return messageList1;
    }

    public void setMessageList1(HtmlMessages hm) {
        this.messageList1 = hm;
    }
    private HtmlPanelGrid panelBuscar1 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelBuscar1() {
        return panelBuscar1;
    }

    public void setPanelBuscar1(HtmlPanelGrid hpg) {
        this.panelBuscar1 = hpg;
    }
    private HtmlPanelGrid gridPanel2 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel2() {
        return gridPanel2;
    }

    public void setGridPanel2(HtmlPanelGrid hpg) {
        this.gridPanel2 = hpg;
    }
    private HtmlOutputText outputText1 = new HtmlOutputText();

    public HtmlOutputText getOutputText1() {
        return outputText1;
    }

    public void setOutputText1(HtmlOutputText hot) {
        this.outputText1 = hot;
    }
    private HtmlPanelGrid gridPanel3 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel3() {
        return gridPanel3;
    }

    public void setGridPanel3(HtmlPanelGrid hpg) {
        this.gridPanel3 = hpg;
    }
    private HtmlInputText textFieldIdProyecto1 = new HtmlInputText();

    public HtmlInputText getTextFieldIdProyecto1() {
        return textFieldIdProyecto1;
    }

    public void setTextFieldIdProyecto1(HtmlInputText hit) {
        this.textFieldIdProyecto1 = hit;
    }
    private HtmlPanelGrid gridPanel4 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel4() {
        return gridPanel4;
    }

    public void setGridPanel4(HtmlPanelGrid hpg) {
        this.gridPanel4 = hpg;
    }
    private HtmlOutputText outputText2 = new HtmlOutputText();

    public HtmlOutputText getOutputText2() {
        return outputText2;
    }

    public void setOutputText2(HtmlOutputText hot) {
        this.outputText2 = hot;
    }
    private HtmlPanelGrid gridPanel5 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel5() {
        return gridPanel5;
    }

    public void setGridPanel5(HtmlPanelGrid hpg) {
        this.gridPanel5 = hpg;
    }
    private HtmlInputText textFieldTitulo1 = new HtmlInputText();

    public HtmlInputText getTextFieldTitulo1() {
        return textFieldTitulo1;
    }

    public void setTextFieldTitulo1(HtmlInputText hit) {
        this.textFieldTitulo1 = hit;
    }
    private HtmlPanelGrid gridPanel6 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel6() {
        return gridPanel6;
    }

    public void setGridPanel6(HtmlPanelGrid hpg) {
        this.gridPanel6 = hpg;
    }
    private DropDown resultadoBusqueda1 = new DropDown();

    public DropDown getResultadoBusqueda1() {
        return resultadoBusqueda1;
    }

    public void setResultadoBusqueda1(DropDown dd) {
        this.resultadoBusqueda1 = dd;
    }
    private HtmlPanelGrid gridPanel7 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel7() {
        return gridPanel7;
    }

    public void setGridPanel7(HtmlPanelGrid hpg) {
        this.gridPanel7 = hpg;
    }
    private HtmlCommandButton buttonConsultarProyectos1 = new HtmlCommandButton();

    public HtmlCommandButton getButtonConsultarProyectos1() {
        return buttonConsultarProyectos1;
    }

    public void setButtonConsultarProyectos1(HtmlCommandButton hcb) {
        this.buttonConsultarProyectos1 = hcb;
    }
    private HtmlPanelGrid panelNombre1 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelNombre1() {
        return panelNombre1;
    }

    public void setPanelNombre1(HtmlPanelGrid hpg) {
        this.panelNombre1 = hpg;
    }
    private Table tableRubroXFuente1 = new Table();

    public Table getTableRubroXFuente1() {
        return tableRubroXFuente1;
    }

    public void setTableRubroXFuente1(Table t) {
        this.tableRubroXFuente1 = t;
    }
    private TableRowGroup tableRowGroup1 = new TableRowGroup();

    public TableRowGroup getTableRowGroup1() {
        return tableRowGroup1;
    }

    public void setTableRowGroup1(TableRowGroup trg) {
        this.tableRowGroup1 = trg;
    }
    private TableColumn tableColumn1 = new TableColumn();

    public TableColumn getTableColumn1() {
        return tableColumn1;
    }

    public void setTableColumn1(TableColumn tc) {
        this.tableColumn1 = tc;
    }
    private StaticText staticText1 = new StaticText();

    public StaticText getStaticText1() {
        return staticText1;
    }

    public void setStaticText1(StaticText st) {
        this.staticText1 = st;
    }
    private TableColumn tableColumn2 = new TableColumn();

    public TableColumn getTableColumn2() {
        return tableColumn2;
    }

    public void setTableColumn2(TableColumn tc) {
        this.tableColumn2 = tc;
    }
    private TextField textField1 = new TextField();

    public TextField getTextField1() {
        return textField1;
    }

    public void setTextField1(TextField tf) {
        this.textField1 = tf;
    }
    private TableColumn tableColumn3 = new TableColumn();

    public TableColumn getTableColumn3() {
        return tableColumn3;
    }

    public void setTableColumn3(TableColumn tc) {
        this.tableColumn3 = tc;
    }
    private TextField textField2 = new TextField();

    public TextField getTextField2() {
        return textField2;
    }

    public void setTextField2(TextField tf) {
        this.textField2 = tf;
    }
    private TableColumn tableColumn4 = new TableColumn();

    public TableColumn getTableColumn4() {
        return tableColumn4;
    }

    public void setTableColumn4(TableColumn tc) {
        this.tableColumn4 = tc;
    }
    private TextField textField3 = new TextField();

    public TextField getTextField3() {
        return textField3;
    }

    public void setTextField3(TextField tf) {
        this.textField3 = tf;
    }
    private TableColumn tableColumn5 = new TableColumn();

    public TableColumn getTableColumn5() {
        return tableColumn5;
    }

    public void setTableColumn5(TableColumn tc) {
        this.tableColumn5 = tc;
    }
    private StaticText staticText2 = new StaticText();

    public StaticText getStaticText2() {
        return staticText2;
    }

    public void setStaticText2(StaticText st) {
        this.staticText2 = st;
    }
    private HtmlPanelGrid panelBoton1 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelBoton1() {
        return panelBoton1;
    }

    public void setPanelBoton1(HtmlPanelGrid hpg) {
        this.panelBoton1 = hpg;
    }
    private HtmlPanelGrid p1 = new HtmlPanelGrid();

    public HtmlPanelGrid getP1() {
        return p1;
    }

    public void setP1(HtmlPanelGrid hpg) {
        this.p1 = hpg;
    }
    private HtmlCommandButton botonGuardar1 = new HtmlCommandButton();

    public HtmlCommandButton getBotonGuardar1() {
        return botonGuardar1;
    }

    public void setBotonGuardar1(HtmlCommandButton hcb) {
        this.botonGuardar1 = hcb;
    }
    private HtmlPanelGrid p2 = new HtmlPanelGrid();

    public HtmlPanelGrid getP2() {
        return p2;
    }

    public void setP2(HtmlPanelGrid hpg) {
        this.p2 = hpg;
    }
    private HtmlCommandButton botonCancelar1 = new HtmlCommandButton();

    public HtmlCommandButton getBotonCancelar1() {
        return botonCancelar1;
    }

    public void setBotonCancelar1(HtmlCommandButton hcb) {
        this.botonCancelar1 = hcb;
    }
    private Tab tabEstPresupuesto2 = new Tab();

    public Tab getTabEstPresupuesto2() {
        return tabEstPresupuesto2;
    }

    public void setTabEstPresupuesto2(Tab t) {
        this.tabEstPresupuesto2 = t;
    }
    private PanelLayout panelRubroXFuente2 = new PanelLayout();

    public PanelLayout getPanelRubroXFuente2() {
        return panelRubroXFuente2;
    }

    public void setPanelRubroXFuente2(PanelLayout pl) {
        this.panelRubroXFuente2 = pl;
    }
    private HtmlPanelGrid panelPrincipal2 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelPrincipal2() {
        return panelPrincipal2;
    }

    public void setPanelPrincipal2(HtmlPanelGrid hpg) {
        this.panelPrincipal2 = hpg;
    }
    private HtmlPanelGrid panelMensajes2 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelMensajes2() {
        return panelMensajes2;
    }

    public void setPanelMensajes2(HtmlPanelGrid hpg) {
        this.panelMensajes2 = hpg;
    }
    private HtmlMessages messageList2 = new HtmlMessages();

    public HtmlMessages getMessageList2() {
        return messageList2;
    }

    public void setMessageList2(HtmlMessages hm) {
        this.messageList2 = hm;
    }
    private HtmlPanelGrid panelBuscar2 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelBuscar2() {
        return panelBuscar2;
    }

    public void setPanelBuscar2(HtmlPanelGrid hpg) {
        this.panelBuscar2 = hpg;
    }
    private HtmlPanelGrid gridPanel8 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel8() {
        return gridPanel8;
    }

    public void setGridPanel8(HtmlPanelGrid hpg) {
        this.gridPanel8 = hpg;
    }
    private HtmlOutputText outputText3 = new HtmlOutputText();

    public HtmlOutputText getOutputText3() {
        return outputText3;
    }

    public void setOutputText3(HtmlOutputText hot) {
        this.outputText3 = hot;
    }
    private HtmlPanelGrid gridPanel9 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel9() {
        return gridPanel9;
    }

    public void setGridPanel9(HtmlPanelGrid hpg) {
        this.gridPanel9 = hpg;
    }
    private HtmlInputText textFieldIdProyecto2 = new HtmlInputText();

    public HtmlInputText getTextFieldIdProyecto2() {
        return textFieldIdProyecto2;
    }

    public void setTextFieldIdProyecto2(HtmlInputText hit) {
        this.textFieldIdProyecto2 = hit;
    }
    private HtmlPanelGrid gridPanel10 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel10() {
        return gridPanel10;
    }

    public void setGridPanel10(HtmlPanelGrid hpg) {
        this.gridPanel10 = hpg;
    }
    private HtmlOutputText outputText4 = new HtmlOutputText();

    public HtmlOutputText getOutputText4() {
        return outputText4;
    }

    public void setOutputText4(HtmlOutputText hot) {
        this.outputText4 = hot;
    }
    private HtmlPanelGrid gridPanel11 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel11() {
        return gridPanel11;
    }

    public void setGridPanel11(HtmlPanelGrid hpg) {
        this.gridPanel11 = hpg;
    }
    private HtmlInputText textFieldTitulo2 = new HtmlInputText();

    public HtmlInputText getTextFieldTitulo2() {
        return textFieldTitulo2;
    }

    public void setTextFieldTitulo2(HtmlInputText hit) {
        this.textFieldTitulo2 = hit;
    }
    private HtmlPanelGrid gridPanel12 = new HtmlPanelGrid();

    public HtmlPanelGrid getGridPanel12() {
        return gridPanel12;
    }

    public void setGridPanel12(HtmlPanelGrid hpg) {
        this.gridPanel12 = hpg;
    }
    private DropDown resultadoBusqueda2 = new DropDown();

    public DropDown getResultadoBusqueda2() {
        return resultadoBusqueda2;
    }

    public void setResultadoBusqueda2(DropDown dd) {
        this.resultadoBusqueda2 = dd;
    }
    private HtmlPanelGrid panelNombre2 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelNombre2() {
        return panelNombre2;
    }

    public void setPanelNombre2(HtmlPanelGrid hpg) {
        this.panelNombre2 = hpg;
    }
    private Table tableRubroXTiempo1 = new Table();

    public Table getTableRubroXTiempo1() {
        return tableRubroXTiempo1;
    }

    public void setTableRubroXTiempo1(Table t) {
        this.tableRubroXTiempo1 = t;
    }
    private TableRowGroup tableRowGroup2 = new TableRowGroup();

    public TableRowGroup getTableRowGroup2() {
        return tableRowGroup2;
    }

    public void setTableRowGroup2(TableRowGroup trg) {
        this.tableRowGroup2 = trg;
    }
    private TableColumn tableColumn6 = new TableColumn();

    public TableColumn getTableColumn6() {
        return tableColumn6;
    }

    public void setTableColumn6(TableColumn tc) {
        this.tableColumn6 = tc;
    }
    private StaticText staticText3 = new StaticText();

    public StaticText getStaticText3() {
        return staticText3;
    }

    public void setStaticText3(StaticText st) {
        this.staticText3 = st;
    }
    private TableColumn tableColumn7 = new TableColumn();

    public TableColumn getTableColumn7() {
        return tableColumn7;
    }

    public void setTableColumn7(TableColumn tc) {
        this.tableColumn7 = tc;
    }
    private TextField textField4 = new TextField();

    public TextField getTextField4() {
        return textField4;
    }

    public void setTextField4(TextField tf) {
        this.textField4 = tf;
    }
    private TableColumn tableColumn8 = new TableColumn();

    public TableColumn getTableColumn8() {
        return tableColumn8;
    }

    public void setTableColumn8(TableColumn tc) {
        this.tableColumn8 = tc;
    }
    private TextField textField5 = new TextField();

    public TextField getTextField5() {
        return textField5;
    }

    public void setTextField5(TextField tf) {
        this.textField5 = tf;
    }
    private TableColumn tableColumn9 = new TableColumn();

    public TableColumn getTableColumn9() {
        return tableColumn9;
    }

    public void setTableColumn9(TableColumn tc) {
        this.tableColumn9 = tc;
    }
    private TextField textField6 = new TextField();

    public TextField getTextField6() {
        return textField6;
    }

    public void setTextField6(TextField tf) {
        this.textField6 = tf;
    }
    private TableColumn tableColumn10 = new TableColumn();

    public TableColumn getTableColumn10() {
        return tableColumn10;
    }

    public void setTableColumn10(TableColumn tc) {
        this.tableColumn10 = tc;
    }
    private StaticText staticText4 = new StaticText();

    public StaticText getStaticText4() {
        return staticText4;
    }

    public void setStaticText4(StaticText st) {
        this.staticText4 = st;
    }
    private HtmlPanelGrid panelBoton2 = new HtmlPanelGrid();

    public HtmlPanelGrid getPanelBoton2() {
        return panelBoton2;
    }

    public void setPanelBoton2(HtmlPanelGrid hpg) {
        this.panelBoton2 = hpg;
    }
    private HtmlPanelGrid p11 = new HtmlPanelGrid();

    public HtmlPanelGrid getP11() {
        return p11;
    }

    public void setP11(HtmlPanelGrid hpg) {
        this.p11 = hpg;
    }
    private HtmlCommandButton botonGuardar2 = new HtmlCommandButton();

    public HtmlCommandButton getBotonGuardar2() {
        return botonGuardar2;
    }

    public void setBotonGuardar2(HtmlCommandButton hcb) {
        this.botonGuardar2 = hcb;
    }
    private HtmlPanelGrid p12 = new HtmlPanelGrid();

    public HtmlPanelGrid getP12() {
        return p12;
    }

    public void setP12(HtmlPanelGrid hpg) {
        this.p12 = hpg;
    }
    private HtmlCommandButton botonCancelar2 = new HtmlCommandButton();

    public HtmlCommandButton getBotonCancelar2() {
        return botonCancelar2;
    }

    public void setBotonCancelar2(HtmlCommandButton hcb) {
        this.botonCancelar2 = hcb;
    }

    // </editor-fold>

    /**
     * <p>Construct a new Page bean instance.</p>
     */
    public PresupuestoAprobado() {
    }

    /**
     * <p>Callback method that is called whenever a page is navigated to,
     * either directly via a URL, or indirectly via page navigation.
     * Customize this method to acquire resources that will be needed
     * for event handlers and lifecycle methods, whether or not this
     * page is performing post back processing.</p>
     * 
     * <p>Note that, if the current request is a postback, the property
     * values of the components do <strong>not</strong> represent any
     * values submitted with this request.  Instead, they represent the
     * property values that were saved for this view when it was rendered.</p>
     */
    @Override
    public void init() {
        // Perform initializations inherited from our superclass
        super.init();
        // Perform application initialization that must complete
        // *before* managed components are initialized
        // TODO - add your own initialiation code here
        
        // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
        // Initialize automatically managed components
        // *Note* - this logic should NOT be modified
        try {
            _init();
        } catch (Exception e) {
            log("CrearGrupos Initialization Failure", e);
            throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
        }
        
        // </editor-fold>
        // Perform application initialization that must complete
        // *after* managed components are initialized
        // TODO - add your own initialization code here
    }

    /**
     * <p>Callback method that is called after the component tree has been
     * restored, but before any event processing takes place.  This method
     * will <strong>only</strong> be called on a postback request that
     * is processing a form submit.  Customize this method to allocate
     * resources that will be required in your event handlers.</p>
     */
    @Override
    public void preprocess() {
    }

    /**
     * <p>Callback method that is called just before rendering takes place.
     * This method will <strong>only</strong> be called for the page that
     * will actually be rendered (and not, for example, on a page that
     * handled a postback and then navigated to a different page).  Customize
     * this method to allocate resources that will be required for rendering
     * this page.</p>
     */
    @Override
    public void prerender() {
    }

    /**
     * <p>Callback method that is called after rendering is completed for
     * this request, if <code>init()</code> was called (regardless of whether
     * or not this was the page that was actually rendered).  Customize this
     * method to release resources acquired in the <code>init()</code>,
     * <code>preprocess()</code>, or <code>prerender()</code> methods (or
     * acquired during execution of an event handler).</p>
     */
    @Override
    public void destroy() {
    }

    /**
     * <p>Return a reference to the scoped data bean.</p>
     *
     * @return reference to the scoped data bean
     */
    protected RequestBean1 getRequestBean1() {
        return (RequestBean1) getBean("RequestBean1");
    }

    /**
     * <p>Return a reference to the scoped data bean.</p>
     *
     * @return reference to the scoped data bean
     */
    protected ApplicationBean1 getApplicationBean1() {
        return (ApplicationBean1) getBean("ApplicationBean1");
    }

    /**
     * <p>Return a reference to the scoped data bean.</p>
     *
     * @return reference to the scoped data bean
     */
    protected SessionBean1 getSessionBean1() {
        return (SessionBean1) getBean("SessionBean1");
    }
    
    private presupuestosVO rubroVO;
 //   private presupuestosBO rubroBO;

    
    private String nRubro="";
    private int idRubro=0;
    private Date fechaRegistro=null;
        
    public String botonGuardar_action() throws Exception{
        // TODO: Process the button click action. Return value is a navigation
        // case name where null will return to the same page.
     /*   try{
            rubroVO= new rubroVO();
            rubroBO= new rubroBO();
            nombreRubro=(String) areaNombreRubro.getValue();
            
            java.util.Date fechaCalendario = (java.util.Date) calendarioFechaRubro.getValue();
            if(nombreRubro==null || nombreRubro.equals("")){
                error("Por favor digite el nombre del grupo de investigación.");
                return null;
            }else if(fechaCalendario==null){
                error("Por favor digite la fecha de registro del grupo de investigación.");
                return null;
            }//else if(!getEmail().contains("@")){
              //  error("Por favor digite el E-mail correcto.");
              // return null;
            //}            
            fechaRegistro = new Date(fechaCalendario.getTime());
            rubroVO.setNombreGrupo(nombreGrupo);
            rubroVO.setFechaRegistro(fechaRegistro);
            idRubro=rubroBO.crearRubro(rubroVO);
            if(idRubro==0){
                error("Error al insertar el grupo de investigación.");
            }else{
                textFieldIdRubro.setValue(idRubro);
                info("El Grupo se ha creado correctamente.");
                buttonComponentes.setDisabled(false);
            }
            
        }catch(ControlException ce){
            error("Error al crear el grupo de investigación.");
            ce.getStackTrace();
        }*/
        return "OK";
    }
    
    public String button2_action() {
        // TODO: Process the button click action. Return value is a navigation
        // case name where null will return to the same page.
        
        return null;
    }

    public String tabCrearRubro_action() {
        // TODO: Replace with your code
        return null;
    }

    public String button3_action() {
        // TODO: Process the button click action. Return value is a navigation
        // case name where null will return to the same page.
       // tabSet1.setSelected(tabCrearRubro.getId().toString());
        return null;
    }

    public String buttonComponentes_action() {
        // TODO: Process the button click action. Return value is a navigation
        // case name where null will return to the same page.
        return null;
    }

    public String tabEstPresupuesto_action() {
        // TODO: Process the action. Return value is a navigation
        // case name where null will return to the same page.
        return null;
    }

    public String buttonConsultarProyectos_action() {
        // TODO: Process the button click action. Return value is a navigation
        // case name where null will return to the same page.
        return null;
    }
}

